package com.zjuee.web.ledger.service.impl.handledata;


import com.zjuee.core.translation.handledata.impl.AbstractDataHandler;
import com.zjuee.base.model.common.plan.PlanAffairs;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component(value = "planAffairsHandle")
public class PlanAffairsHandle extends AbstractDataHandler {
    @Override
    public <T> T getData(T data, Map<Object, Object> map, String... str) {
        PlanAffairs planAffairs = (PlanAffairs) data;
        planAffairs.setWpaType(getStr(map, planAffairs.getWpaType(), str, 0));
        return (T) planAffairs;
    }
}
